home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / vbcc-68k-src / machines / amiga68k / libsrc / stdio / fflush.c < prev    next >
C/C++ Source or Header  |  1999-01-01  |  253b  |  18 lines

  1. #include <stdio.h>
  2.  
  3. extern FILE *_firstfile;
  4.  
  5. int fflush(FILE *f)
  6. {
  7.     if(f){
  8.         _flushbuf(f);
  9.     }else{
  10.         f=_firstfile;
  11.         while(f){
  12.             if(f->flags&_WRITE)_flushbuf(f);
  13.             f=f->next;
  14.         }
  15.     }
  16.     return(0);
  17. }
  18.